package com.landiao.common;

import java.util.HashMap;
import java.util.Map;

import com.landiao.entities.Comp;
import com.landiao.entities.SendTemplate;

public class Constant {
	public static final String SESSION_USER = "user";

	public static final Integer STATE_ENABLE = 1;
	public static final Integer STATE_DISABLE = 0;
	
	//用户类型,1:总店管理员;2:门店管理员
	public static final Integer USER_TYPE_MAIN = 1;
	public static final Integer USER_TYPE_BRACH = 2;
	
	//状态,10A:正常；10X已删除
	public static final String STATE_NORMAL = "10A";
	public static final String STATE_DELETE = "10X";
	
	//验证码状态
	public static final String IDENTIFY_CODE_ISUSED_YES = "YES";
	public static final String IDENTIFY_CODE_ISUSED_NO = "NO";
	
	//订单状态,10A:未完成；10S已完成
	public static final String ORDER_STATE_NOT_OVER = "10A";
	public static final String ORDER_STATE_OVER = "10S";
	
	//微信返回
	public static final String WX_SUCCESS = "SUCCESS";
	public static final String WX_FAIL = "FAIL";
	
	//支付流水pay_source
	public static final String PAY_SOURCE_CZ = "CZ";//充值
	public static final String PAY_SOURCE_XF = "XF";//消费
	
	//支付流水pay_way
	public static final String PAY_WAY_XJ = "XJ";//现金
	public static final String PAY_WAY_YE = "YE";//余额
	public static final String PAY_WAY_ZX = "ZX";//在线
	
	public static final String WX_PAY_NOTIFY_URL = "weixin/payNotify";
	
	public static final String PAY_BODY_XF = "蓝调社区美发订单";//描述
	
	//微信员工端模板ID
	public static final String TEMP_ID_ORDER_EMPLOYEE="OPENTM206305152";//预约通知员工的模板ID
	
	//微信会员端模板ID
	public static final String TEMP_ID_ORDER_SUCCESS="OPENTM207251116";//预约成功的模板ID
	public static final String TEMP_ID_ORDER_FAIL="OPENTM200395767";//预约失败的模板ID
	public static final String TEMP_ID_PAY_SUCCESS="OPENTM207185188";//订单付款成功通知的模板ID
	
	//微信模板行业
	public static final String industry_id1="1";//互联网/电子商务
	public static final String industry_id2="23";//护理美容
	
	//微信模板
	public static Map<String, SendTemplate> VIP_TEMP_MAP=new HashMap<String, SendTemplate>();
	public static Map<String, SendTemplate> EMPLOYEE_TEMP_MAP=new HashMap<String, SendTemplate>();
	
	//企业信息
	public static Comp comp;
	
	//系统配置项
	public enum SysConfigItemEnum{
		MDSE_PERCENT,//商品提成比例
		VIP_BALANCE_PERCENT,//会员余额结算时的提成折扣
		COUPON_PERCENT,//卡卷抵用的提成折扣
		APPOINTMENT_INTERVAL,//预约间隔时间（小时）
		OFF_WORK_HOUR,//下班时间
		APPOINTMENT_ADVANCE,//预约提前量（小时）
		QUALITY_CUST_CON,//优质客户条件
		WORK_HOUR;//上班时间
	}
	
	//交易类型
	public enum WxTradeType{
		JSAPI,//微信端充值
		NATIVE,//扫一扫支付
		APP;
	}
	
	//交易类型
	public enum PayResult{
		SUCCESS("支付成功"),//支付成功
		REFUND("转入退款"),//转入退款
		NOTPAY("未支付"),//未支付
		CLOSED("已关闭"),//已关闭
		REVOKED("已撤销"),//已撤销
		USERPAYING("用户支付中"),//用户支付中
		PAYERROR("支付失败");//支付失败
		private String name;
		private PayResult(String name){
			this.name=name;
		}
		public String getName(){
			return name;
		}
	}
		
	//角色
	public enum RoleIdEnum{
		FXS("发型师"),
		XFS("洗发师"),
		RTS("染烫师");
		
		private String name;
		private RoleIdEnum(String name){
			this.name=name;
		}
		public String getName(){
			return name;
		}
	}
}
